<script type="text/javascript">
                    validaForm('formBanner');
</script>
<div class="gridConteudo">
    {CHAMA_FUNCAO funcao="getCaminhoPastaBanco" classe="imprimiConteudo"}
    <form class="form-actions" name="formBanner" id="formBanner" action="{$URLEXECUTE}banco/executaPost.php{$PARAMS}" method="post" enctype="multipart/form-data">
        <legend>CADASTRO DE BANNER</legend>
        <div class="divForm">
            {*}ESSENCIAL##########################################################################{*}
            {*}###################################################################################{*}
            {*}###################################################################################{*}
            {*}Nome da Tabela{*}
            <input style="display:none" type="text" name="tabela" id="tabela" value="tb_banner" />
            {*}Chave da Tabela{*}
            <input style="display:none" type="text" name="id" id="id" value="id_banner" />
            {*}URL Atual do Site{*}
            <input style="display:none" type="text" name="url" id="url" value={$URLATUAL} />
            {*}BOTÕES FORMULARIO{*}
            <div class="span12 offset0 divBotoesCima">
                <center>
                    <button class="btn btn-personalizado" type="submit">Salvar</button>
                    <button class="btn btn-personalizado" type="button" onclick="window.location='{$CANCELA}'">Cancelar</button>
                </center>
            </div>
            {*}BOTÕES FORMULARIO{*}
            {if $smarty.const.MSG}
                <div class="alert floatLeft width96percent {$smarty.const.TIPO_MSG}" align="center">
                    <button class="close" data-dismiss="alert" onClick="executaAjaxRetirandoGetMsg('{$PARAM_FECHAR_MSG}')" type="button">×</button>
                    <strong>{$smarty.const.TITULO_MSG}</strong><br />
                    {$smarty.const.MSG}
                </div>
            {/if}
            {*}###################################################################################{*}
            {*}###################################################################################{*}
            {*}###################################################################################{*}
            <label class="label-xxlarge" for="descricao">Descrição
                <input class="input-xxlarge" type="text" placeholder="Descrição" name="descricao" id="descricao" value="{$descricao}"/>
            </label>
            <label class="label-mini" for="ordem">Ordem
                <input class="input-mini" type="text" placeholder="Ordem" name="ordem" id="ordem" value="{$ordem}"/>
            </label>
            <label class="label-medium" for="id_categoria_banner">Tipo Notícia:
                {CHAMA_FUNCAO funcao="getCombo" classe="imprimiConteudo" 
                         class="input-medium" name="id_categoria_banner" tabela="tb_categorias_banners" order="descricao asc" 
                         campo="descricao" id="id_categoria_banner" valor="$id_categoria_banner"}
            </label>
            <label class="label-xxxlarge" for="resumo">Resumo
                <input class="input-xxxlarge" type="text" placeholder="Resumo" name="resumo" id="resumo" value="{$resumo}"/>
            </label>

            <label class="label-xxxlarge" for="texto">Texto
                <textarea class="input-xxxlarge" rows="5" placeholder="Texto" name="texto" id="texto">{$texto}</textarea>
            </label>
            <label class="checkbox" for="expandir">Expandir Quando Clicar na Imagem
                <input type="checkbox" name="expandir" id="expandir" value="{$expandir}"/>
            </label>
            <label class="label-xxxlarge" for="link">Link
                <input class="input-xxxlarge" type="text" placeholder="Link" name="link" id="link" value="{$link}"/>
            </label>
            {*}QUEBRAR LINHA{*}
            <div class="span12 offset0 minHeight0"></div>
            {*}QUEBRAR LINHA{*}
            <label class="label-fotoFile" for="foto">Escolher Capa
                <input id="foto"  placeholder="Foto" type="file" name="foto" id="foto"/>
            </label>
            {if $nome_foto}
                <label class="label-mini" for="delFoto">
                    <a class="fancybox" rel="group" href="{$URL_IMG_SALVAS}{$nome_foto}">
                        <img title="Clique para Ampliar" class="imgFile" src="{$URL_IMG_SALVAS}{$nome_foto}" id="fotoFile" alt="{$nome_foto}"/>
                    </a>
                </label>
                <label class="label-mini" for="delFoto">Excluir Foto:
                    <input class="input-mini" type="checkbox" id="delFoto" name="delFoto"/>
                </label>
            {else}
                <label class="labelSemfoto" >Não há foto cadastrada...</label>
            {/if}
            {*}BOTÕES FORMULARIO{*}
            <div class="span12 offset0 divBotoesBaixo">
                <center>
                    <button class="btn btn-personalizado" type="submit">Salvar</button>
                    <button class="btn btn-personalizado" type="button" onclick="window.location='{$CANCELA}'">Cancelar</button>
                </center>
            </div>
            {*}BOTÕES FORMULARIO{*}
        </div>
    </form>
</div>